﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TulingMember.Core
{
    /// <summary>
    /// 药品
    /// </summary> 
    [TableAudit]
    public class cts_Product: DEntityTenant
    {
        /// <summary>
        /// 库存下限
        /// </summary>
        public int StockLowerLimit { get; set; }
        /// <summary>
        /// 库存上限
        /// </summary>
        public int StockUpperLimit { get; set; }
        /// <summary>
        /// 检索码
        /// </summary>
        public string SearchCode { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 生产厂家
        /// </summary>
        public string Manufacturer { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 剂型
        /// </summary>
        public string Formulations { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        public long TypeId { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal InPrice { get; set; }
        /// <summary>
        /// 划线价格
        /// </summary>
        public decimal FakePrice { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal Num { get; set; }
        /// <summary>
        /// 批号/国药准字
        /// </summary>
        public string GuoyaoZhunzi { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime ManufacturingDate { get; set; }
        /// <summary>
        /// 有效期至
        /// </summary>
        public DateTime ExpirationDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 入库集合
        /// </summary>
        public ICollection<cts_PurchaseOrderDetail> PurchaseOrderDetails { get; set; }
        /// <summary>
        /// 出库集合
        /// </summary>
        public ICollection<cts_SaleOrderDetail> SaleOrderDetails { get; set; }
    }
}